<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="<%=path%>/hplus/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="<%=path%>/hplus/css/style.min.css"/>
<link rel="stylesheet" type="text/css" href="<%=path%>/hplus/css/font-awesome.min93e3.css"/>
</head>
<body class="gray-bg">
<div class="container-fluid">
	<div class="row">
		<div class="col-sm-12">
			<div class="tabs-container">
		        <ul class="nav nav-tabs">
		            <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">全部</a></li>
		            <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">微博线索</a></li>
		            <li class=""><a data-toggle="tab" href="#tab-3" aria-expanded="false">活动线索</a></li>
		            <li class=""><a data-toggle="tab" href="#tab-4" aria-expanded="false">智能营销线索</a></li>
		        </ul>
		        <div class="tab-content">
		            <div id="tab-1" class="tab-pane active">
		                <div class="panel-body">
		                </div>
		            </div>
		            <div id="tab-2" class="tab-pane">
		                <div class="panel-body">
		                </div>
		            </div>
		            <div id="tab-3" class="tab-pane">
		                <div class="panel-body">
		                </div>
		            </div>
		            <div id="tab-4" class="tab-pane">
		                <div class="panel-body">
							要改，稍后写
		                </div>
		            </div>
		        </div>
		    </div>
		</div>
	</div>
</div>
</body>
<script type="text/javascript" src="<%=path%>/hplus/js/jquery.min.js"></script>
<script type="text/javascript" src="<%=path%>/hplus/js/bootstrap.min.js"></script>
<script type="text/javascript">
var path = "<%=path%>";
$(function(){
	$(".tabs-container>.nav-tabs>li").click(function(){
		var index = $(this).index()+1;
		
		var url = "";
		if(index == 1){
			url = path+"/api/clue_customer/allClue"
		}else if(index == 2){
			url = path+"/api/clue_customer/clue_weiboView";
		}else if(index == 3){
			url = path+"/api/clue_customer/clue_activityView";
		}else if(index == 4){
			url = path+"/api/clue_customer/clue_smart_activityView";
		}
		$(".tabs-container>.tab-content>#tab-"+index+">.panel-body").load(url);
	});
	$(".tabs-container>.nav-tabs>li.active").click();
});
</script>
</html>